package com.idev.common.mybatis;

import com.github.pagehelper.PageHelper;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by yigeyanse on 2017/6/19.
 */
@Configuration
public class PageHelperConfiguration {
    @Bean
    @ConfigurationProperties(prefix = "pagehelper")
    public PageHelper pageHelper() {
        PageHelper pageHelper = new PageHelper();
        return pageHelper;
    }
}
